package com.article_main.mapper;

import com.article_protocol.pojo.po.AddArticlePO;
import com.article_protocol.pojo.po.GetUserArticlePO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {
//    @Insert("insert into article " +
//            "values(#{articleId},#{uid},#{createTime},#{location},NULL)")
     int addArticle(AddArticlePO addArticlePO);
//     int selectUserArticle()
      List<GetUserArticlePO> getUserArticle(long uid);

      List<GetUserArticlePO> getIndexArticle(int pageNum);


      GetUserArticlePO getArticle(long aid);


}
